// import Vue from 'vue'
// import Router from 'vue-router'

// Vue.use(Router)

// export default new Router({
//   routes: [{
//     path: '/',
//     name: 'HelloWorld',
//     component: HelloWorld
//   }]
// })

import myContainer from '@/components/my-container';
import home from '../components/home/home.vue'
import invest from '../components/invest/invest.vue'
import find from '../components/find/find.vue'
import mine from '../components/mine/mine.vue'
import homeInvest from '../components/home/home-invest.vue';
import homeInvestDetail from '../components/home/home-invest-detail.vue';
import homeInvestAnother from '../components/home/home-invest-another.vue';
import mineSon from '../components/mine/mine-son.vue'
// var myContainer = require('../components/my-container')


const routes = [{
  path: '/',
  component: myContainer,
  children: [{
      path: '/home',
      component: home
    },
    {
      path: '/invest',
      component: invest
    },
    {
      path: '/find',
      component: find
    },
    {
      path: '/mine',
      component: mine
    }
  ]
}, {
  path: '/home/homeInvest',
  component: homeInvest,
  meta: {
    requiresAuth: true
  }
}, {
  path: '/home/homeInvestDetail',
  component: homeInvestDetail,
  meta: {
    requiresAuth: true
  }
}, {
  path: '/home/homeInvestAnother',
  component: homeInvestAnother,
  meta: {
    requiresAuth: true
  }
}, {
  path: '/mine/mineson',
  component: mineSon,
  meta: {
    requiresAuth: true
  }
}];

export default routes;
